// void, Settlement set, int playerid

int r;
str hclass;
Unit newunit;

Sleep(rand(1000)+3000);

r = set.GetCentralBuilding.race;

if (r == Gaul)
	hclass = "GaulHero";
else if (r == ImperialRome)
	hclass = "ImperialRomanHero";
else if (r == RepublicanRome)
	hclass = "RepublicanRomanHero";
else if (r == Carthage)
	hclass = "CarthaginianHero";
else if (r == Iberia)
	hclass = "IberianHero";
else if (r == Britain)
	hclass = "BritonHero";
else if (r == Egypt)
	hclass = "EgyptianHero";
else if (r == Germany)
	hclass = "GermanHero";
	
Sleep(1000);
newunit = Place(GetRandomHeroClass(hclass, playerid), set.GetCentralBuilding().pos, playerid);
//newunit.SetMessengerStatus( true );
//newunit.SetNoselectFlag( true );
newunit.SetLevel(12);
set.ForceAddUnit(newunit);

